﻿using OCR.Config;
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace OCR.SystemThread
{
    class TestNGControlThread
    {
        public static bool TestNGControlThread_Flowrec = false;
        public static Thread TestNGControlFlow_Thread = null;

        public static int iTestNGControl_Step = 0;

        public static bool TestNGControlThread_Pause = false;

        public static DateTime startDt;

        public static ConcurrentQueue<FinalInfoData> infoQueue = new ConcurrentQueue<FinalInfoData>();
        public static void TestNGControl_Thread()
        {
            iTestNGControl_Step = 0;
            TestNGControlThread_Pause = false;
            TestNGControlThread_Flowrec = true;
            TestNGControlFlow_Thread = new Thread(TestNGControlThreadFlow);
            TestNGControlFlow_Thread.IsBackground = true;
            TestNGControlFlow_Thread.Start();
        }

        private static void TestNGControlThreadFlow()
        {
            while (TestNGControlThread_Flowrec)
            {
                if (!TestNGControlThread_Pause)
                {
                    switch (iTestNGControl_Step)
                    {
                        case 0:

                            break;
                        case 5:

                            break;
                        case 10:

                            break;
                        case 11:

                            break;
                        case 15:

                            break;
                    }
                }


            }

        }
    }
}
